<!DOCTYPE html>
<html xmlns="https://www.w3.org/1999/xhtml">
<head>
    <title>微米荟</title>  <link rel="icon" href="/template/pc1/images/wmh_favicon.ico" type="image/x-icon" />
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <meta name="viewport"name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <script type="text/javascript" src="https://static.9hive.cn/global/vendor/jquery/jquery-2.1.4.min.js"></script>
    <script src="//qzonestyle.gtimg.cn/open/qcloud/video/h5/h5connect.js" charset="utf-8"></script>
    <!--微信分享-->
    <link href="/template/default/css/articlestyle.css" rel="stylesheet"/>
    <script type="text/javascript">
        /*如果开启视频播放(文章管理)*/
        <%if(a.isPlayVideo! == true){%>
            $(function () {
                var player = new qcVideo.Player("id_video_container", {
                    "file_id": "${a.videoFileId!}",
                    "app_id": "${a.videoAppId!}",
                    "width":640,
                    "height":480
                });
            });
        <%}%>
    </script>


<body>
    
<!--<%if(!isEmpty(a.url)){%>
<a href="${a.url}" class="buythis">去购买</a>
<%}%>-->
    <%if(a.isPlayVideo! == true){%>
    <div class="video_list">
        <div class="sp" id="sp">
            <div id="id_video_container"  style="width:100%; height:auto;"></div>
        </div>
    </div>
    <%}%>

<div class="textcontent" style="padding-bottom: 0px">
${a.content!}
</div>
</body>
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
<script type="text/javascript">
    wx.config({
        debug: false,
        appId : '${appId!}',
        timestamp : '${timestamp!}',
        nonceStr : '${nonceStr!}',
        signature : '${signature!}',
        jsApiList : [ 'onMenuShareTimeline', 'onMenuShareAppMessage',
            'onMenuShareQQ', ]
    });
    wx.ready(function() {
        /* 发送给朋友 */
        wx.onMenuShareAppMessage({
            title: '${a.title}',
            desc: '${a.description}',
            link: '${weburl}/b/article/wap?id=${a.id}&shopId=${shopId!}',
            imgUrl: '${a.imgurl!}',
            fail: function (res) {
                alert(JSON.stringify(res));
            }
        });
        /* 分享到朋友圈 */
        wx.onMenuShareTimeline({
            title: '${a.title}',
            link: '${weburl}/b/article/wap?id=${a.id}&shopId=${shopId!}',
            imgUrl: '${a.imgurl!}',
            fail: function (res) {
                alert(JSON.stringify(res));
            }
        });
        /* 分享到QQ */
        wx.onMenuShareQQ({
            title: '${a.title}',
            desc: '${a.description}',
            link: '${weburl}/b/article/wap?id=${a.id}&shopId=${shopId!}',
            imgUrl: '${a.imgurl!}',
            complete: function (res) {
                alert(JSON.stringify(res));
            },
            fail: function (res) {
                alert(JSON.stringify(res));
            }
        });
        /*分享到微博*/
        wx.onMenuShareWeibo({
            title: '${a.title}',
            desc: '${a.description}',
            link: '${weburl}/b/article/wap?id=${a.id}&shopId=${shopId!}',
            imgUrl: '${a.imgurl!}',
            complete: function (res) {
                alert(JSON.stringify(res));
            },
            fail: function (res) {
                alert(JSON.stringify(res));
            }
        });
    });
</script>
</html>
